<%@page import="java.util.*"%>
<%@page import="jdbc.JdbcDao"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>

 	<%
		try {
			JdbcDao jdbc = new JdbcDao();
			boolean a = jdbc.insertToUsers();
			a = jdbc.changeUserContent("emai1@qq.com", "email", "email2@qq.com");
			List<HashMap<String, String>> userNames = jdbc.getUserList();
			
			out.println(userNames.toString());
			out.println("<br>");
			
			for (HashMap<String, String> hm : userNames) {
				Set s = hm.keySet();
				Iterator i = s.iterator();
				while (i.hasNext()) {
					Object temp = i.next();
					out.println(temp + ": " + hm.get(temp) + "<br>");
				}
			}
			//jdbc.delFromUsers("email@qq.com");
		} catch (Exception e) {
			System.out.println(e);
		}
	%>
	
	<form action="checkemail.jsp" method="GET">
		<p>请输入用户名：<input type = "text" name = "user" /></p>
		<br>
		<p>请输入密码： <input type="password" name="password" /></p>
		<br>
		<p>请输入您的邮箱： <input type="text" name="Email" /></p>
		<br>
		<input type="submit" value="Submit" />
	</form>

	
</body>
</html>